﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// Treatment Type Repository Interface
    /// </summary>
    public interface ITreatmentTypeRepository
    {
        /// <summary>
        /// Get All Treatment Type
        /// </summary>
        /// <returns></returns>
        IQueryable<TreatmentType> FindAllTreatmentType();

        /// <summary>
        /// Get Treatment Type By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<TreatmentType> FindTreatmentTypeByName(string strQuery);

        /// <summary>
        /// Get Treatment Type By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        TreatmentType GetTreatmentTypeById(int id);

        /// <summary>
        /// Add Treatment Type in the Database
        /// </summary>
        /// <param name="treatmentType"></param>
        void Add(TreatmentType treatmentType);

        /// <summary>
        /// Delete Treatment Type from the Database
        /// </summary>
        /// <param name="treatmentType"></param>
        void Delete(TreatmentType treatmentType);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}